Integrand size = 29, antiderivative size = 171 \[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=-\frac {B (a d (1+m)-b c (3+m)) (e x)^{1+m}}{2 c d^2 e (1+m)}-\frac {(b c-a d) (e x)^{1+m} \left (A+B x^2\right )}{2 c d e \left (c+d x^2\right )}+\frac {(a d (A d (1-m)+B c (1+m))+b c (A d (1+m)-B c (3+m))) (e x)^{1+m} \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{2},\frac {3+m}{2},-\frac {d x^2}{c}\right )}{2 c^2 d^2 e (1+m)} \]
-1/2*B*(a*d*(1+m)-b*c*(3+m))*(e*x)^(1+m)/c/d^2/e/(1+m)-1/2*(-a*d+b*c)*(e*x )^(1+m)*(B*x^2+A)/c/d/e/(d*x^2+c)+1/2*(a*d*(A*d*(1-m)+B*c*(1+m))+b*c*(A*d* (1+m)-B*c*(3+m)))*(e*x)^(1+m)*hypergeom([1, 1/2+1/2*m],[3/2+1/2*m],-d*x^2/ c)/c^2/d^2/e/(1+m)
Time = 0.21 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.63 \[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\frac {x (e x)^m \left (b B c^2+c (-2 b B c+A b d+a B d) \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{2},\frac {3+m}{2},-\frac {d x^2}{c}\right )+(b c-a d) (B c-A d) \operatorname {Hypergeometric2F1}\left (2,\frac {1+m}{2},\frac {3+m}{2},-\frac {d x^2}{c}\right )\right )}{c^2 d^2 (1+m)} \]
(x*(e*x)^m*(b*B*c^2 + c*(-2*b*B*c + A*b*d + a*B*d)*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, -((d*x^2)/c)] + (b*c - a*d)*(B*c - A*d)*Hypergeometric 2F1[2, (1 + m)/2, (3 + m)/2, -((d*x^2)/c)]))/(c^2*d^2*(1 + m))
Time = 0.36 (sec) , antiderivative size = 174, normalized size of antiderivative = 1.02, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.138, Rules used = {439, 25, 363, 278}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\left (a+b x^2\right ) \left (A+B x^2\right ) (e x)^m}{\left (c+d x^2\right )^2} \, dx\) |
\(\Big \downarrow \) 439 |
\(\displaystyle -\frac {\int -\frac {(e x)^m \left (A (a d (1-m)+b c (m+1))-B (a d (m+1)-b c (m+3)) x^2\right )}{d x^2+c}dx}{2 c d}-\frac {\left (A+B x^2\right ) (e x)^{m+1} (b c-a d)}{2 c d e \left (c+d x^2\right )}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \frac {(e x)^m \left (A (a d (1-m)+b c (m+1))-B (a d (m+1)-b c (m+3)) x^2\right )}{d x^2+c}dx}{2 c d}-\frac {\left (A+B x^2\right ) (e x)^{m+1} (b c-a d)}{2 c d e \left (c+d x^2\right )}\) |
\(\Big \downarrow \) 363 |
\(\displaystyle \frac {\frac {(a d (A d (1-m)+B c (m+1))+b c (A d (m+1)-B c (m+3))) \int \frac {(e x)^m}{d x^2+c}dx}{d}-\frac {B (e x)^{m+1} (a d (m+1)-b c (m+3))}{d e (m+1)}}{2 c d}-\frac {\left (A+B x^2\right ) (e x)^{m+1} (b c-a d)}{2 c d e \left (c+d x^2\right )}\) |
\(\Big \downarrow \) 278 |
\(\displaystyle \frac {\frac {(e x)^{m+1} \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{2},\frac {m+3}{2},-\frac {d x^2}{c}\right ) (a d (A d (1-m)+B c (m+1))+b c (A d (m+1)-B c (m+3)))}{c d e (m+1)}-\frac {B (e x)^{m+1} (a d (m+1)-b c (m+3))}{d e (m+1)}}{2 c d}-\frac {\left (A+B x^2\right ) (e x)^{m+1} (b c-a d)}{2 c d e \left (c+d x^2\right )}\) |
-1/2*((b*c - a*d)*(e*x)^(1 + m)*(A + B*x^2))/(c*d*e*(c + d*x^2)) + (-((B*( a*d*(1 + m) - b*c*(3 + m))*(e*x)^(1 + m))/(d*e*(1 + m))) + ((a*d*(A*d*(1 - m) + B*c*(1 + m)) + b*c*(A*d*(1 + m) - B*c*(3 + m)))*(e*x)^(1 + m)*Hyperg eometric2F1[1, (1 + m)/2, (3 + m)/2, -((d*x^2)/c)])/(c*d*e*(1 + m)))/(2*c* d)
3.1.32.3.1 Defintions of rubi rules used
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x _Symbol] :> Simp[d*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(b*e*(m + 2*p + 3))), x] - Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(b*(m + 2*p + 3)) Int[(e*x)^ m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && NeQ[b*c - a*d , 0] && NeQ[m + 2*p + 3, 0]
Int[((g_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_ .)*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[(-(b*e - a*f))*(g*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^q/(2*a*b*g*(p + 1))), x] + Simp[1/(2*a*b*(p + 1)) Int[(g*x)^m*(a + b*x^2)^(p + 1)*(c + d*x^2)^(q - 1)*Simp[c*(2*b*e*( p + 1) + (b*e - a*f)*(m + 1)) + d*(2*b*e*(p + 1) + (b*e - a*f)*(m + 2*q + 1 ))*x^2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && LtQ[p, -1] && G tQ[q, 0] && !(EqQ[q, 1] && SimplerQ[b*c - a*d, b*e - a*f])
\[\int \frac {\left (e x \right )^{m} \left (b \,x^{2}+a \right ) \left (x^{2} B +A \right )}{\left (d \,x^{2}+c \right )^{2}}d x\]
\[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\int { \frac {{\left (B x^{2} + A\right )} {\left (b x^{2} + a\right )} \left (e x\right )^{m}}{{\left (d x^{2} + c\right )}^{2}} \,d x } \]
Result contains complex when optimal does not.
Time = 29.82 (sec) , antiderivative size = 2069, normalized size of antiderivative = 12.10 \[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\text {Too large to display} \]
A*a*(-c*e**m*m**2*x**(m + 1)*lerchphi(d*x**2*exp_polar(I*pi)/c, 1, m/2 + 1 /2)*gamma(m/2 + 1/2)/(8*c**3*gamma(m/2 + 3/2) + 8*c**2*d*x**2*gamma(m/2 + 3/2)) + 2*c*e**m*m*x**(m + 1)*gamma(m/2 + 1/2)/(8*c**3*gamma(m/2 + 3/2) + 8*c**2*d*x**2*gamma(m/2 + 3/2)) + c*e**m*x**(m + 1)*lerchphi(d*x**2*exp_po lar(I*pi)/c, 1, m/2 + 1/2)*gamma(m/2 + 1/2)/(8*c**3*gamma(m/2 + 3/2) + 8*c **2*d*x**2*gamma(m/2 + 3/2)) + 2*c*e**m*x**(m + 1)*gamma(m/2 + 1/2)/(8*c** 3*gamma(m/2 + 3/2) + 8*c**2*d*x**2*gamma(m/2 + 3/2)) - d*e**m*m**2*x**2*x* *(m + 1)*lerchphi(d*x**2*exp_polar(I*pi)/c, 1, m/2 + 1/2)*gamma(m/2 + 1/2) /(8*c**3*gamma(m/2 + 3/2) + 8*c**2*d*x**2*gamma(m/2 + 3/2)) + d*e**m*x**2* x**(m + 1)*lerchphi(d*x**2*exp_polar(I*pi)/c, 1, m/2 + 1/2)*gamma(m/2 + 1/ 2)/(8*c**3*gamma(m/2 + 3/2) + 8*c**2*d*x**2*gamma(m/2 + 3/2))) + A*b*(-c*e **m*m**2*x**(m + 3)*lerchphi(d*x**2*exp_polar(I*pi)/c, 1, m/2 + 3/2)*gamma (m/2 + 3/2)/(8*c**3*gamma(m/2 + 5/2) + 8*c**2*d*x**2*gamma(m/2 + 5/2)) - 4 *c*e**m*m*x**(m + 3)*lerchphi(d*x**2*exp_polar(I*pi)/c, 1, m/2 + 3/2)*gamm a(m/2 + 3/2)/(8*c**3*gamma(m/2 + 5/2) + 8*c**2*d*x**2*gamma(m/2 + 5/2)) + 2*c*e**m*m*x**(m + 3)*gamma(m/2 + 3/2)/(8*c**3*gamma(m/2 + 5/2) + 8*c**2*d *x**2*gamma(m/2 + 5/2)) - 3*c*e**m*x**(m + 3)*lerchphi(d*x**2*exp_polar(I* pi)/c, 1, m/2 + 3/2)*gamma(m/2 + 3/2)/(8*c**3*gamma(m/2 + 5/2) + 8*c**2*d* x**2*gamma(m/2 + 5/2)) + 6*c*e**m*x**(m + 3)*gamma(m/2 + 3/2)/(8*c**3*gamm a(m/2 + 5/2) + 8*c**2*d*x**2*gamma(m/2 + 5/2)) - d*e**m*m**2*x**2*x**(m...
\[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\int { \frac {{\left (B x^{2} + A\right )} {\left (b x^{2} + a\right )} \left (e x\right )^{m}}{{\left (d x^{2} + c\right )}^{2}} \,d x } \]
\[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\int { \frac {{\left (B x^{2} + A\right )} {\left (b x^{2} + a\right )} \left (e x\right )^{m}}{{\left (d x^{2} + c\right )}^{2}} \,d x } \]
Timed out. \[ \int \frac {(e x)^m \left (a+b x^2\right ) \left (A+B x^2\right )}{\left (c+d x^2\right )^2} \, dx=\int \frac {\left (B\,x^2+A\right )\,{\left (e\,x\right )}^m\,\left (b\,x^2+a\right )}{{\left (d\,x^2+c\right )}^2} \,d x \]